import request from '@/utils/request'

// 查询余额明细列表
export function listBalanceDetail(query) {
  return request({
    url: '/balanceDetail/balanceDetail/list',
    method: 'get',
    params: query
  })
}

// 查询余额明细详细
export function getBalanceDetail(id) {
  return request({
    url: '/balanceDetail/balanceDetail/' + id,
    method: 'get'
  })
}

// 新增余额明细
export function addBalanceDetail(data) {
  return request({
    url: '/balanceDetail/balanceDetail',
    method: 'post',
    data: data
  })
}

// 修改余额明细
export function updateBalanceDetail(data) {
  return request({
    url: '/balanceDetail/balanceDetail',
    method: 'put',
    data: data
  })
}

// 删除余额明细
export function delBalanceDetail(id) {
  return request({
    url: '/balanceDetail/balanceDetail/' + id,
    method: 'delete'
  })
}
